﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UIDesign.aspx.cs" Inherits="Cms.Web.UIBuilder.UIDesign" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body spellcheck="false">

    <script type="text/javascript">
        var FormSetting = <%=FormSetting %>;
        var TableList=<%=DBSetting %>;
    </script>

    
    <script src="/Scripts/Linb/runtime/js/linb-debug.js" type="text/javascript"></script>
<!--

    <script src="/Scripts/Linb/runtime/jsLinb/js/linb-ALL.js" type="text/javascript"></script>
-->
    <script type="text/javascript">
        linb.ini.appPath = "/Scripts/Linb/VisualJS/";
    </script>

    <script src="../Scripts/Linb/runtime/js/Coder.js" type="text/javascript"></script>

    <script src="/Scripts/Linb/VisualJS/js/exLinb/AdvResizer.js" type="text/javascript"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/conf.js"></script>

    <script src="/Scripts/Linb/VisualJS/codemirror/js/codemirror.js" type="text/javascript"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/CodeEditor.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/ClassTool.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/JSEditor.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/PageEditor.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/ObjectEditor.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/Designer.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/JumpTo.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/FAndR.js"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/EditorTool.js"></script>

    <script src="../Scripts/Linb/VisualJS/js/CustomDecoration.js" type="text/javascript"></script>

    <script type="text/javascript" src="/Scripts/Linb/VisualJS/js/UIDesigner.js"></script>

    <script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    
    <script type="text/javascript">
        linb.debug = false;

        var FormAction = "modify";
        var FormSource = "<%=FormSource %>";


        var lang = (function() {
            var dft = 'en-us', map = {
                'en-us': 'en',
                'zh-cn': 'cn',
                'ja-jp': 'ja',
                'zh-tw': 'tw'
            }, n = navigator, l = (n.language || n.userLanguage || n.systemLanguage || n.browserLanguage || '').toLowerCase();
            return map[l] || map[dft];
        })();
        linb.Com.load('UIDesigner', function() {
            linb.include("lang." + lang, CONF.path_apidir + "Locale/" + lang + ".js");
            linb('loading').remove();
            //赋值
        }, lang);        </script>

    <script type="text/javascript">
        function UIDesignAjax(options, method, callback) {
            var url = "/UIBuilder/DesignForm.ashx";
            $.ajax({
                url: url,
                data: options,
                method: method,
                success: function(data) {
                    if (callback && typeof (callback) == "function") {
                        callback(data);
                    }
                }
            });
        }
        function SaveForm(xmldata, jsondata,width,height) {
            xmldata = escape(xmldata);
            jsondata = escape(jsondata);
            UIDesignAjax({ "action": "saveform", "formid": '<%=Cms.EntLib.Request.GetString("id") %>', "issys": "false", "xmldata": xmldata, "jsondata": jsondata ,"param":'<%=Cms.EntLib.Request.GetString("param") %>',width:width,height:height }, "POST", function(data) {
                alert("保存成功!");
            });
        }
    </script>

</body>
</html>
